package cn.iocoder.yudao.module.nginxui.controller.admin.config.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - Nginx主配置分页 Request VO")
@Data
public class ConfigPageReqVO extends PageParam {

    @Schema(description = "配置名称", example = "王五")
    private String name;

    @Schema(description = "配置描述", example = "你说的对")
    private String description;

    @Schema(description = "工作进程数")
    private String workerProcesses;

    @Schema(description = "最大连接数")
    private Integer workerConnections;

    @Schema(description = "错误日志路径")
    private String errorLog;

    @Schema(description = "PID文件路径", example = "16686")
    private String pid;

    @Schema(description = "HTTP块包含的其他配置")
    private String httpInclude;

    @Schema(description = "全局包含的其他配置")
    private String globalInclude;

    @Schema(description = "状态(0-草稿,1-已启用,2-已禁用)", example = "1")
    private Integer status;

    @Schema(description = "完整配置内容")
    private String content;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}